package edu.mju.eduStatistics;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @Author: wyp
 * @Date: 2020/11/14 15:48
 * EnableDiscoveryClient:nacos注册
 * EnableFeignClients:openfeign在调用端添加该注解
 * @EnableScheduling: 开启定时任务
 */
@SpringBootApplication
@ComponentScan(basePackages = {"edu.mju"})
@EnableDiscoveryClient
@EnableFeignClients
@EnableScheduling
public class StatisticsApplication {
    public static void main(String[] args) {
        SpringApplication.run(StatisticsApplication.class,args);
    }
}
